{extend name="base" /}
{block name="js"}
<script src="__INDEX__/mine/mine.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="l-loading" style="display: block" id="htr-loading"></div>
<div class="htr-toolbar">
	
   <div id="query" style="float:left;">
       <input type="hidden" name="staffId" id="staffId" class="query" value="{$staffId}" />
        <div class='f-left tbr-m'>客户姓名:</div>
        <input type="text" name="user_name"  placeholder='客户姓名' id="user_name" class="query" />
        <div class='f-left tbr-m'>联系方式:</div>
        <input type="text" name="user_phone"  placeholder='联系方式' id="user_phone" class="query" />
        <div class='f-left tbr-m'>疾病类型:</div>
        <select id="diseaseId" name='diseaseId' class='query'>
          <option value="">-请选择-</option>    
          {volist name="diseaseList" id="vo"}
          <option value="{$vo['diseaseId']}">{$vo['diseaseName']}</option>
          {/volist}
        </select> 
        <div class='f-left tbr-m'>客户分类:</div>
        <select id="classifyId" name='classifyId' class='query'>
          <option value="">-请选择-</option>    
          {volist name="classifyList" id="vo"}
          <option value="{$vo['classifyId']}">{$vo['classifyName']}</option>
          {/volist}
        </select> 
        <div class='f-left tbr-m'>消费类型:</div>
        <select id="consume_type" name='consume_type' class='query'>
          <option value="">-请选择-</option>
          <option value="0">系统型</option>
          <option value="1">传统型</option>
          <option value="2">投资型</option>
        </select> 		 
        <div class='f-left tbr-m'>客户类型:</div>
        <select id="type" name='type' class='query'>
          <option value="">-请选择-</option>
          <option value="0">客户转介绍</option>
          <option value="1">业务扁平开发</option>
        </select>     
	   		<input type="button" class="btn btn-blue" onclick="javascript:userQuery()" value="查询">
	</div>

   {if $staffRoleId == 3}
   <button class="btn btn-green f-right" onclick="javascript:location.href='<?=url("mine/toEdit")?>'">新增</button>
   {/if}
   <div style="clear:both"></div>
</div>
<div id="maingrid"></div>
<script>
  $(function(){initGrid({$staffId})});
</script>
{/block}